package com.pucong.gitee.database.backup.business.database.vo;

import com.pucong.gitee.database.backup.common.selfenum.CommonBoolenEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import java.io.Serializable;


@Data
@ApiModel("数据库执行参数")
public class DatabaseVo  implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiParam("数据库id")
    private String databaseId;

    @ApiModelProperty("数据库名称")
    private String databaseName;

    @ApiModelProperty("模式名称")
    private String schemaName;

    @ApiModelProperty("执行sql")
    private String sql;

    @ApiModelProperty("是否开启事物")
    private CommonBoolenEnum autoCommit;

    @ApiModelProperty("是否提交事物")
    private CommonBoolenEnum commitTransactional;

    @ApiModelProperty(value = "一页大小",example = "10")
    private Integer pageSize;

    @ApiModelProperty(value = "当前页数",example = "1")
    private Integer pageNo;
}
